import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'

Vue.config.productionTip = false
// 导入axios qs moment
import qs from 'qs'
import axios  from 'axios'	
import moment  from 'moment'

// 将组件扩展到vue对象上
Vue.prototype.$axios=axios
Vue.prototype.$qs=qs
Vue.prototype.$moment=moment

// 跨域带cookie
axios.defaults.withCredentials=true
// axios服务器路径
axios.defaults.baseURL="http://localhost:8080/"

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
